import request from '@/utils/request'
//查询菜单列表
export const getMenuList = () =>
  request({
    url: '/admin/system/sysMenu/list',
    method: 'get',
  })
//添加菜单
export const addMenu = data =>
  request({
    url: '/admin/system/sysMenu/add',
    method: 'post',
    data,
  })
//修改菜单
export const editMenu = data =>
  request({
    url: '/admin/system/sysMenu/edit',
    method: 'put',
    data,
  })
//删除菜单
export const deleteMenu = id =>
  request({
    url: `/admin/system/sysMenu/delete/${id}`,
    method: 'delete',
  })
